package com.design.abstractfactory;

import com.design.util.XMLUtil;

/**
 * @author leali
 * @title: Client
 * @projectName design
 * @description: 抽象工厂-客户端
 * @date 2022/1/2 20:11
 */
public class Client {
    public static void main(String[] args) {
        //使用抽象层定义
        SkinFactory factory = (SkinFactory) XMLUtil.getValueByTagName("abstractFactoryName", 0, true);
        assert factory != null;
        factory.createButton().display();
        factory.createTextField().display();
        factory.createComboBox().display();
    }

}
